package com.yidu.t286.biz.impl;
/*
 * @description:
 * @author:文杰
 * @date  :2021/7/30 0030上午 9:01
 */

import com.yidu.t286.biz.FunBiz;
import com.yidu.t286.dao.FunDao;
import com.yidu.t286.domain.Fun;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("funBiz")
public class FunBizImpl implements FunBiz {


    @Autowired
    private FunDao funDao;


    @Override
    public List<Fun> selectFolder(int roleId) {
        return funDao.selectFolder(roleId);
    }

    @Override
    public List<Fun> selectChildren(int funId, int roleId) {
        return null;
    }

    @Override
    public int deleteAllFun(int roleId) {

        return funDao.deleteAllFun(roleId);
    }

    @Override
    public int addFunByRoleId(int roleId, String funId) {
        return funDao.addFunByRoleId(roleId,funId);
    }

    @Override
    public List<Fun> selectFolders(int roleId) {
        return funDao.selectFolders(roleId);
    }
}
